<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>班级信息管理</title>
    <link rel="stylesheet" href="{{ url_for('static',filename='css/bootstrap.css') }}">
    <link rel="stylesheet" href="{{ url_for('static',filename='css/base.css') }}">
    <script src="{{ url_for('static',filename='js/jquery-3.3.1.js') }}"></script>
    <script src="{{ url_for('static',filename='js/bootstrap.js') }}"></script>
</head>
<body>
    <div class="container-fluid wrapper">
        <div class="c-header">
            <div class="h-left"></div>
            <div class="h-right">
                <div>
                    <a href="#">消息</a>
                </div>
                <div>
                    <a href="#">设置</a>
                </div>
                <div class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">安全退出<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li>退出</li>
                        <li>注销</li>
                        <li>切换账号</li>
                        <li class="divider"></li>
                        <li>帮助</li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="c-main">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-2">
                        {% if userInfo %}
                            <p>当前用户:{{ userInfo.un }}</p>
                        {% endif %}
                    </div>
                    <div class="col-md-10">
                        <p>当前班级：</p>
                        <button class="btn bg-primary" data-toggle="modal" data-target="#myModal">添加</button>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-2">
                        {% block classlist %}
                        
                        {% endblock %}
                    </div>
                    <div class="col-md-10">
                        {% block students %}
                        
                        {% endblock %}
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 模态框（Modal） -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">添加学生</h4>
                </div>
                <div class="modal-body">
                    <form action="/add" method="post">
                        <input type="text" name="sname" placeholder="姓名">
                        <input type="text" name="cname" placeholder="班级名称">
                        <input type="text" name="sage" placeholder="年龄">
                        <input type="text" name="ssex" placeholder="性别">
                        <input type="submit" class="btn bg-info btn-lg" value="保存">
                    </form>
                </div>
                
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
</body>
</html>